package com.atguigu.gulimail.product.feign;


import com.atguigu.common.to.MemberPriceTo;
import com.atguigu.common.to.SkuFullReductionTo;
import com.atguigu.common.to.SkuLadderTo;
import com.atguigu.common.to.SpuBoundsTo;
import com.atguigu.common.utils.R;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;

@FeignClient(name = "coupon")
public interface CouponService {
    @RequestMapping("/coupon/spubounds/save")
    R saveSpuBounds(@RequestBody SpuBoundsTo spuBoundsTo);

    @RequestMapping("/coupon/memberprice/save")
    R saveMemberPrice(@RequestBody MemberPriceTo memberPriceTo);

    @RequestMapping("/coupon/skufullreduction/save")
    R saveSkuFullReduction(@RequestBody SkuFullReductionTo skuFullReductionTo);


    @RequestMapping("/coupon/skuladder/save")
    public R saveSkuLadder(@RequestBody SkuLadderTo skuLadderTo);

}
